package dsk.demo.miaosha.demo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),

    //登录异常5002xx
    LOGIN_ERROR(500210,"用户名或密码错误"),
    MOBILE_ERROR(500211,"手机号格式不正确"),

    USER_EMPTY(500100,"用户不存在，请重新登录"),

    BIND_ERROR(500212,"参数校验异常"),

    //秒杀模块5005xx
    EMPTY_STOCK(500500,"库存不足"),
    REPEATE_ERROR(500501,"该商品每人限购一件"),

    //订单模块 5003xx
    ORDER_NOT_EXIT(500301,"订单信息不存在"),
    ;

    private final Integer code;
    private final String message;
}
